<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">

<html xmlns="http://www.w3.org/1999/xhtml">
<head>

<meta http-equiv="Content-Type" content="text/html; charset=utf-8" />

<title>快速分享 - 乐兔淘</title>

<link href="{SITE_URL}images/style.css" rel="stylesheet" type="text/css" />

<link rel="shortcut icon" href="favicon.ico" type="image/x-icon" />
<script>var siteUrl = 'http://www.letutao.com/';</script>

<script src="{SITE_URL}public/js/jquery.js" type="text/javascript"></script>

<script src="{SITE_URL}public/js/dialog/jquery.artDialog.js?skin=blue" type="text/javascript"></script>

<script src="{SITE_URL}public/js/dialog/artDialog.iframeTools.js" type="text/javascript"></script>

<script src="{SITE_URL}app/talk/js/extend.func.js" type="text/javascript"></script>

<script>
$(document).ready(function(){

		var tagText = "多个标签请用,分开";

		var title = $("input[name='title']").val();

		if(title == "null"){

			title = "";

		}

		$("#description").val(title);

		

		$("#tags").focus(function(){

			var tag = $.trim($(this).val());

			if(tag == tagText){

				$(this).removeClass("text tips").addClass("text").val("");

			}

		});

		

		$("#tags").blur(function(){

			var tag = $.trim($(this).val());

			if(tag.length == 0){

				$(this).removeClass("text").addClass("text tips").val(tagText);

			}

		});



		$("#idsoo_submit_btn").click(function(){

			var tags = $.trim($("#tags").val());

			if(tags.length == 0 || tags == tagText){

				$("#tags").siblings("span").empty().text("请填写宝贝标签！");

				return;

			}else{

				$("#tags").siblings("span").empty();

			}

			var desc = $.trim($("#description").val());

			if(desc.length == 0){

				$("#description").siblings("span").empty().text("请填写宝贝描述！");

				return;

			}else{

				$("#description").siblings("span").empty();

			}

			$("#postForm").submit();

		});

	});

</script>
</head>

<body>



<form method="POST" action="{SITE_URL}index.php?app=talk&ac=do&ts=post_topic" id="postForm">
	<input type="hidden" value="{$titlee}" name="title">
	<input type="hidden" value="1" name="post">
	<input type="hidden" value="{$price}" name="price">
	<input type="hidden" value="{$imgUrl}" name="imgUrl" />
	<input type="hidden" value="{$purlg}"  name="gourl">
	<input type="hidden"  name="iscomment" value="0" />
	<div class="s_post co5 ">

		<div class="p_edit">

			<div class="p_form">

				<p class="title"><label for="tags">标签</label></p>

				<p>

					<tr>
    <td class="tdLabel"></td>
    <td
><input type="text" name="tag" maxlength="50" value="{$tgga}" id="tags" class="text tips"/></td>
</tr>
<br />

					<span class="error"></span>

				</p>

				<p class="title"><label for="description">描述</label></p>

				<p>

					<tr>
    <td class="tdLabel"></td>
    <td
><textarea name="content" id="description"></textarea></td>
</tr>
<br />

					<span class="error"></span>

				</p>
				<input type="hidden" name="talkid" value="{$talkid}" />
				<p class="submit">

					<input type="button"  value="完成" id="idsoo_submit_btn" name="Submit" class="btn">

				</p>

			</div>

			<div class="p_img">

				<p><img class="ava" src="{$imgUrl}" /></p>

				<p class="url">{$purlg}</p>

			</div>

			<div class="clear"></div>

		</div>

	</div>

</form>



</body>

</html>



